package Mapper

import (
	"github.com/gin-gonic/gin"
	"hr-system/Controller"
)

func ResignEmployeeGroup(r *gin.Engine) {
	ResignEmployeeRoutes := r.Group("/resignEmployee")
	resignEmployeeController := Controller.NewResignEmployeeController()
	ResignEmployeeRoutes.POST("/show", resignEmployeeController.PageList)// 查询已离职员工
	ResignEmployeeRoutes.POST("/add", resignEmployeeController.Create)// 员工离职
	ResignEmployeeRoutes.POST("/update", resignEmployeeController.Update)// 更新信息
	ResignEmployeeRoutes.POST("/delete", resignEmployeeController.Delete)// 恢复在职状态
}

